﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Chat_Model
{
    /// <summary>
    /// 聊天对话记录（登录日志）
    ///</summary>
    [SugarTable("lar_talk_records_login")]
    public class LarTalkRecordsLogin
    {
        /// <summary>
        /// 登录ID 
        ///</summary>
         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public string Id { get; set; }
        /// <summary>
        /// 消息记录ID 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="record_id"    )]
         public string RecordId { get; set; }
        /// <summary>
        /// 用户ID 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="user_id"    )]
         public string UserId { get; set; }
        /// <summary>
        /// IP地址 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="ip"    )]
         public string Ip { get; set; }
        /// <summary>
        /// 登录平台[h5,ios,windows,mac,web] 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="platform"    )]
         public string Platform { get; set; }
        /// <summary>
        /// 设备信息 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="agent"    )]
         public string Agent { get; set; }
        /// <summary>
        /// IP所在地 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="address"    )]
         public string Address { get; set; }
        /// <summary>
        /// 登录异常提示 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="reason"    )]
         public string Reason { get; set; }
        /// <summary>
        /// 登录时间 
        ///</summary>
         [SugarColumn(ColumnName="created_at"    )]
         public DateTime CreatedAt { get; set; }
    }
}
